package com.xy9860.user.spi;

import com.xy9860.user.fallback.UserSpiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author xy9860
 * @Description 请求
 * Copyright: Copyright (c) 2020
 * Company: Sichuan haiwujiang information technology Co., Ltd
 * @since 2020/7/1
 */
@FeignClient(name = "http://user-service.default:8080",url = "http://user-service.default:8080", fallback = UserSpiFallback.class)
public interface UserSpi {
    /**
     * @return
     */
    @GetMapping("/user/login")
    String login();
}
